package com.androidgame.framework;

//interface to allow acess to any API drawing calls we need
public interface Graphics 
{
	//the different pixel formats supported
	public static enum PixmapFormat 
	{
		ARGB8888, ARGB4444, RGB565
	}
	
	//method will load an image asset in our application’s APK file
	public Pixmap newPixmap(String fileName, PixmapFormat format);
	
	//method clears the complete framebuffer with the given color
	public void clear(int color);
	
	//set the pixel at (x,y) in the framebuffer to the given color
	public void drawPixel(int x, int y, int color);
	
	public void drawLine(int x, int y, int x2, int y2, int color);
	
	public void drawRect(int x, int y, int width, int height, int color);
	
	//draw rectangular portions of a Pixmap to the framebuffer. 
	//The (x,y) specify top-left position  srcX and srcY specify 
	//top-left corner of srcWidth and srcHeight specify size
	public void drawPixmap(Pixmap pixmap, int x, int y, int srcX, int srcY,
			int srcWidth, int srcHeight);
	
	public void drawPixmap(Pixmap pixmap, int x, int y);
	
	//return the width and height of the framebuffer in pixels
	public int getWidth();
	
	public int getHeight();
}